.inventory-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 0;
    height: 600px;
    max-height: 80vh;
    background: rgba(15, 15, 20, 0.95);
    overflow: hidden;
    position: relative;
    color: #e0e0e0;
}

.inventory-sidebar {
    background: rgba(10, 10, 15, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.inventory-category-btn {
    padding: 15px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.inventory-category-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.inventory-category-btn.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    font-weight: 600;
}

.inventory-category-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.inventory-category-btn i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.inventory-main {
    padding: 24px;
    overflow-y: auto;
    background: rgba(20, 20, 25, 0.4);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.inventory-item-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inventory-item-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inventory-item-card.selected {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.3),
        inset 0 0 20px rgba(251, 191, 36, 0.1);
}

.inventory-item-icon {
    font-size: 32px;
    color: #e0e0e0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.inventory-item-quantity {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.inventory-item-quest-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    color: #fbbf24;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.inventory-details {
    background: rgba(15, 15, 20, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.details-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    gap: 16px;
}

.details-empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.details-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.details-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.details-name {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.details-type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.details-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    flex-grow: 1;
}

.details-effects {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.effect-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.effect-row:last-child {
    border-bottom: none;
}

.effect-label {
    color: rgba(255, 255, 255, 0.6);
}

.effect-value {
    color: #4ade80;
    font-weight: 600;
}

.details-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.inventory-action-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inventory-action-btn.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.inventory-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.inventory-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.inventory-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}